package ${entityPath};
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
<#list importPackages as package>
${package}
</#list>
<#if swaggerOpen>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value="${comment}")
</#if>
@Table(name="${tableName}")
public class ${className} {
    <#list columns as column>
        <#if column.key=='PRI'>
    @Id
        </#if>
        <#if column.extra=='auto_increment'>
    @GeneratedValue(strategy = GenerationType.IDENTITY)
        </#if>
        <#if swaggerOpen>
    @ApiModelProperty(value="${column.comment}")
        </#if>
    private ${column.type} ${column.samllHumpName};
    </#list>
    <#list columns as column>
    public void set${column.bigHumpName}(${column.type} ${column.samllHumpName}){
        this.${column.samllHumpName}=${column.samllHumpName};
    }
    public ${column.type} get${column.bigHumpName}(){
        return ${column.samllHumpName};
    }
    </#list>
}
